import request from '@/api/request'

/**
 * 查询所有菜单
 * @returns
 */
export function findAllPermissions() {
  return request({
    url: `/admin/sysAuth/permission/findAllPermissions`
  })
}
// 新增资源菜单
export function save(data) {
  return request({
    url: `/admin/sysAuth/permission/save`,
    method: 'post',
    data
  })
}
/**
 * 获取用户初始化菜单
 * @returns
 */
export function getInitMenus() {
  return request({
    url: `/admin/sysAuth/index/getInitMenus`
  })
}
/**
 * 获取仪表盘数据
 * @returns
 */
export function baseData() {
  return request({
    url: `/lejuAdmin/dashboard/baseData`
  })
}
